from enum import Enum


class Vip(Enum):
    YELLOW = 1
    GREEN = 2
    BLACK = 3
    RED = 4


# print(type(Vip.YELLOW))
# print(Vip.YELLOW)

# print(type(Vip.YELLOW.value))
# print(Vip.YELLOW.value)

# # 枚举的类型
# print(Vip['GREEN'])

# 枚举是可遍历的
for v in Vip:
    print(v)
